using System;

namespace Grr.Models
{
	public class SearchMatch
	{
		private string title;
		private string desc;
		private string url;
		private int rank;

		public SearchMatch(string title, string desc, string url, int rank)
		{
			this.title = title;
			this.desc = desc;
			this.url = url;
			this.rank = rank;
		}

		public string Title
		{
			get { return title; }
		}

		public string Description
		{
			get { return desc; }
		}

		public string Url
		{
			get { return url; }
		}

		public string FullUrl
		{
			get
			{
				return url.Replace("~", "http://www.grurrah.com");
			}
		}

		public int Rank
		{
			get { return rank; }
		}
	}

}

